﻿<UserControl
    x:Class="AppDemo.Views.Menu"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:AppDemo.Views"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="555">
    <UserControl.Resources>
        <Storyboard x:Name="GoToSessions">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Grid.Column)" Storyboard.TargetName="Ellipse">
                <DiscreteObjectKeyFrame KeyTime="0">
                    <DiscreteObjectKeyFrame.Value>
                        <x:Int32>1</x:Int32>
                    </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Name="GoToSpeakers">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Grid.Column)" Storyboard.TargetName="Ellipse">
                <DiscreteObjectKeyFrame KeyTime="0">
                    <DiscreteObjectKeyFrame.Value>
                        <x:Int32>0</x:Int32>
                    </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Name="GoToInfos">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Grid.Column)" Storyboard.TargetName="Ellipse">
                <DiscreteObjectKeyFrame KeyTime="0">
                    <DiscreteObjectKeyFrame.Value>
                        <x:Int32>2</x:Int32>
                    </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Name="GoToSearch">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Grid.Column)" Storyboard.TargetName="Ellipse">
                <DiscreteObjectKeyFrame KeyTime="0">
                    <DiscreteObjectKeyFrame.Value>
                        <x:Int32>3</x:Int32>
                    </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>

    <Grid>
        <Grid MaxWidth="600"
    		Background="{StaticResource TechdaysPurpleBrush}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Button x:Name="btnSpeakers" Click="btnSpeakers_Click"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderBrush="{x:Null}" Background="Transparent" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Padding="2">
                <Image Source="ms-appx:///Assets/Assets_icoSpeakers.png"/>
            </Button>
            <Button x:Name="btnSessions" Click="btnSessions_Click"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="1" BorderBrush="{x:Null}" Background="Transparent" Opacity="0.5" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Padding="2">
                <Image Source="ms-appx:///Assets/Assets_icoSessions.png"/>
            </Button>
            <Button x:Name="btnInfos" Click="btnInfos_Click"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="2" BorderBrush="{x:Null}" Background="Transparent" Opacity="0.5" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Padding="2">
                <Image Source="ms-appx:///Assets/Assets_icoInfos.png"/>
            </Button>
            <Button x:Name="btnRecherche" Click="btnRecherche_Click"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="3" BorderBrush="{x:Null}" Background="Transparent" Opacity="0.5" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Padding="2">
                <Image Source="ms-appx:///Assets/Assets_icoSearch.png"/>
            </Button>
            <Path x:Name="Ellipse" Data="M40,20 C40,31.0457 31.0457,40 20,40 C8.9543,40 0,31.0457 0,20 C0,8.9543 8.9543,0 20,0 C31.0457,0 40,8.9543 40,20 z" Fill="{StaticResource LightGreyBrush}" HorizontalAlignment="Center" Height="15" Margin="0,0,0,-12" Stretch="Fill" VerticalAlignment="Bottom" Width="15" />
        </Grid>

    </Grid>
</UserControl>
